﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class LoginBO//:BaseBO<LoginDAO,RelaxLogin>
    {
        #region Value
        private readonly LoginDAO _loginDao=new LoginDAO();
        #endregion

        #region Hàm lấy dữ liệu

        public IQueryable<RelaxLoginsDataContract> GetAllUser()
        {
            return _loginDao.GetAllUser();
        }

        public IQueryable<RelaxLoginsDataContract> GetAllClientUser()
        {
            return _loginDao.GetAllClientUser();
        }

        #endregion

        #region Hàm Add
        public void Add(RelaxLogin login)
        {
            _loginDao.Add(login);
        }
       
        #endregion

        #region Hàm Update
        public void Update(RelaxLogin login)
        {
            _loginDao.Update(login);
        }
        #endregion

        #region Hàm Delete
        public void Delete(long iId)
        {
            _loginDao.Delete(iId);
        }
        #endregion
    }
}
